<?php 
  require_once("../../includes/config.php"); 
  if(isset($_GET['id']))
  {
    $conracts = query('SELECT * FROM contracts 
      LEFT JOIN clients ON 
        contracts.client_id=clients.id 
      LEFT JOIN companies ON 
        contracts.company_id=companies.company_id WHERE contracts.contract_id=?',$_GET['id']);
    $contract = $conracts[0];
    renderWithoutHeader("Bookings/fatora.php", array("contract"=>$contract));

  }  

?>